<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example: Simple Map</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA"
            type="text/javascript"></script>
    <script type="text/javascript">
    navigator.geolocation.getCurrentPosition(handler);
    function handler(location){
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(location.coords.latitude, location.coords.longitude), 13);
        map.addOverlay(new GMarker(new GLatLng(location.coords.latitude, location.coords.longitude)));
        map.setUIToDefault();

        var directionsPanel = document.getElementById("route");
        directions = new GDirections(map, directionsPanel);
        directions.load("from: (" + location.coords.latitude + ", " + location.coords.longitude + ") to: 125 Linden Ave, Ithaca NY");
      }
    }
    </script>
  </head>

  <body>
    <div id="map_canvas" style="width: 70%; height: 480px; float:left; border: 1px solid black;"></div>
    <div id="route" style="width: 25%; height:480px; float:right; border; 1px solid black;"></div>
  </body>
</html>

